package cn.edu.sjzc.playgo;

public class CheckPlace {
	public boolean changePlace(int a[][], int i, int j) {
		if (a[i][j] == 1 || a[i][j] == -1) {
			return false;
		} else {
			return true;
		}
	}

	public boolean checkPlaceOut(int a[][], int i, int j) {
		if (i < 0 || i > a.length - 1 || j < 0 || j > a.length - 1 || i == 0 || j == 0 ) {
			return false;
		}
		return true;
	}
}
